package com.example.jasonrpc.example;

import java.util.ResourceBundle;

public class ConfigUtil {
    public static String getServerIp(String filename) {
        return ResourceBundle.getBundle(filename).getString("serverIp");
    }

    public static int getServerPort(String filename) {
        return Integer.parseInt(ResourceBundle.getBundle(filename).getString("serverPort"));
    }

    public static int getCenterPort(String filename) {
        return Integer.parseInt(ResourceBundle.getBundle(filename).getString("centerPort"));
    }
}
